@import '../../../core/index.less';
.orin-sw-relistitem-root {
    position: relative;
    width: 100%;
    height: auto;
    font-size: 16/@remScale;
}

.orin-sw-relistitem-root-title {
    position: relative;
    width: 100%;
    height: 40/@remScale;
    line-height: 40/@remScale;
    background-color: #fff;
    padding: 0 18/@remScale;
    &:after {
        content: '';
        display: block;
        width: 100%;
        clear: both;
    }
    .title {
        color: #aaa;
    }
    .description {
        color: #999;
    }
    &.active {
        .title {
            color: #333;
        }
    }
    > div {
        height: inherit;
    }
    > .left,
    > .right {
        text-align: center;
        .icon {
            position: relative;
            transform: translateY(-50%);
            top: 50%;
        }
    }
    > .left {
        float: left;
        padding-right: 10/@remScale;
    }
    > .right {
        float: right;
        padding-left: 10/@remScale;
    }
    > .auto {
        overflow: hidden;
        height: 100%;
    }
    .text {
        width: 100%;
    }
    &:hover {
        background: #f5f5f5;
    }
}

.orin-sw-relistitem-root-list {
    width: 100%;
    overflow: hidden;
    max-height: 1000/@remScale;
    transition: all .5s;
    padding-left: 16/@remScale;
    &.show {
        transition: all .5s;
        max-height: 0;
    }
}

.theme-dark {
    .orin-sw-relistitem-root-title {
        .icon-relist-toggle {
            position: relative;
            width: 20/@remScale;
            height: 20/@remScale;
            background-color: transparent;
            &.show {
                span {
                    transform: rotate(-45deg);
                }
            }
            span {
                position: absolute;
                width: 10/@remScale;
                height: 10/@remScale;
                transform-origin: 50% 50%;
                transform: translate(0, 50%) rotate(135deg);
                transition: transform .3s;
                left: 25%;
                top: 12%;
                &:after {
                    content: '';
                    position: absolute;
                    left: 0;
                    bottom: 0;
                    width: 10/@remScale;
                    height: 2/@remScale;
                    background-color: #999;
                }
                &:before {
                    content: '';
                    position: absolute;
                    left: 0;
                    bottom: 0;
                    height: 10/@remScale;
                    width: 2/@remScale;
                    background-color: #999;
                }
            }
        }
        &:hover {
            .text {
                .title {
                    color: white;
                }
            }
            .icon-relist-toggle {
                span {
                    &:before,
                    &:after {
                        background: white;
                    }
                }
            }
        }
    }
}
